package net.imagine.provider.skyline;

import java.util.UUID;

import net.imagine.core.FileKeyGenerator;

/**
 * 根据用户ID，相册ID，源文件名生成文件名
 * 
 * @see UUID
 * @author wuqh
 */
public class SimpleFileKeyGenerator implements FileKeyGenerator {
	
	/**
	 * {@inheritDoc}
	 * 
	 * @param args [userId,albumId,filename]
	 * 
	 * */
	@Override
	public String generateFileKey(String... args) {
		return SkylineImagineUtils.generateFileKey(args);
	}
	
	public static void main(String... args) {
		long s = System.currentTimeMillis();
		System.out.println((new SimpleFileKeyGenerator()).generateFileKey("1","2","123.jpg"));
		long e = System.currentTimeMillis();
		System.out.println(e-s);
	}

}
